import time

def liu(name):

    print(f"我是{name}，我开始吃包子了")

    while True:
        baozi  = yield

        print(f"{name}，开始吃{baozi},很开心")
def dehe():

        c1 = liu("刘德合")
        c2 = liu("德合")
        c1.__next__()
        c2.__next__()
        for i in range(10):
            time.sleep(2)
            c1.send(f"牛肉包子{i}")
            c2.send(f"韭菜鸡蛋包子{i}")
dehe()